Episode 22 “JEP 408 - Simple Web Server”
David remotely sat down with Julia Boes, Senior Member of Technical Staff in Dublin, to discuss the Simple Web Server (SWS). The SWS, introduced in JDK 18, is a minimal web server that serves static files. It comes with a command-line tool and an API. In this episode, Julia explains why another web server might be useful. She explains its goals, its features, who it is for but also what it is not!. She then goes over the command-line tool, its API, etc.
Note: During the recording, the withRequest
method was inadvertently mentioned instead of the adaptRequest
method, the latter is the correct method (see javadoc).
For more episodes, check out Inside Java and follow @Java on Twitter.
Contact us here.
Resources
- JEP 408: Simple Web Server
- JDK 18
jdk.httpserver
documentationcom.sun.net.httpserver.SimpleFileServer
documentation- jwebserver man page
- Working with the Simple Web Server
- net-dev mailing list
- panama-dev mailing list
Additional resources
- Dev.java : The Destination for Java Developers
- OpenJDK
- Oracle Java